package org.graduation.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.graduation.model.common.user.User;
import org.springframework.stereotype.Component;

@Component
public class MybatisPlusWrapperFactory {
    public static LambdaQueryWrapper<User> getInfoByEmail(String email) {
        LambdaQueryWrapper<User> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(User::getEmail, email);
        return lambdaQueryWrapper;
    }
}
